home *** CD-ROM | disk | FTP | other *** search
/ PC go! 2017 October / PCgo 10-2017 CD-ROM Germany.iso / nw.pak / Unnamed File 000098.txt < prev    next >
Encoding:
Text File  |  2015-07-29  |  2.3 KB  |  110 lines

  1. /* Copyright (c) 2012 The Chromium Authors. All rights reserved.
  2.  * Use of this source code is governed by a BSD-style license that can be
  3.  * found in the LICENSE file. */
  4.  
  5. /* This file holds CSS that should be shared, in theory, by all user-visible
  6.  * chrome:// pages. */
  7.  
  8. @import url(chrome://resources/css/text_defaults.css);
  9. @import url(widgets.css);
  10.  
  11.  
  12. /* Prevent CSS from overriding the hidden property. */
  13. [hidden] {
  14.   display: none !important;
  15. }
  16.  
  17. html {
  18.   height: 100%;  /* For printing. */
  19. }
  20.  
  21. html.loading * {
  22.   -webkit-transition-delay: 0 !important;
  23.   -webkit-transition-duration: 0 !important;
  24. }
  25.  
  26. body {
  27.   cursor: default;
  28.   margin: 0;
  29. }
  30.  
  31. p {
  32.   line-height: 1.8em;
  33. }
  34.  
  35. h1,
  36. h2,
  37. h3 {
  38.   -webkit-user-select: none;
  39.   font-weight: normal;
  40.   /* Makes the vertical size of the text the same for all fonts. */
  41.   line-height: 1;
  42. }
  43.  
  44. h1 {
  45.   font-size: 1.5em;
  46. }
  47.  
  48. h2 {
  49.   font-size: 1.3em;
  50.   margin-bottom: 0.4em;
  51. }
  52.  
  53. h3 {
  54.   color: black;
  55.   font-size: 1.2em;
  56.   margin-bottom: 0.8em;
  57. }
  58.  
  59. a {
  60.   color: rgb(17, 85, 204);
  61.   text-decoration: underline;
  62. }
  63.  
  64. a:active {
  65.   color: rgb(5, 37, 119);
  66. }
  67.  
  68. /* Elements that need to be LTR even in an RTL context, but should align
  69.  * right. (Namely, URLs, search engine names, etc.)
  70.  */
  71. html[dir='rtl'] .weakrtl {
  72.   direction: ltr;
  73.   text-align: right;
  74. }
  75.  
  76. /* Input fields in search engine table need to be weak-rtl. Since those input
  77.  * fields are generated for all cr.ListItem elements (and we only want weakrtl
  78.  * on some), the class needs to be on the enclosing div.
  79.  */
  80. html[dir='rtl'] div.weakrtl input {
  81.   direction: ltr;
  82.   text-align: right;
  83. }
  84.  
  85. html[dir='rtl'] .favicon-cell.weakrtl {
  86.   -webkit-padding-end: 22px;
  87.   -webkit-padding-start: 0;
  88. }
  89.  
  90. /* weakrtl for selection drop downs needs to account for the fact that
  91.  * Webkit does not honor the text-align attribute for the select element.
  92.  * (See Webkit bug #40216)
  93.  */
  94. html[dir='rtl'] select.weakrtl {
  95.   direction: rtl;
  96. }
  97.  
  98. html[dir='rtl'] select.weakrtl option {
  99.   direction: ltr;
  100. }
  101.  
  102. /* WebKit does not honor alignment for text specified via placeholder attribute.
  103.  * This CSS is a workaround. Please remove once WebKit bug is fixed.
  104.  * https://bugs.webkit.org/show_bug.cgi?id=63367
  105.  */
  106. html[dir='rtl'] input.weakrtl::-webkit-input-placeholder,
  107. html[dir='rtl'] .weakrtl input::-webkit-input-placeholder {
  108.   direction: rtl;
  109. }
  110.